//package com.mofe.zxy.config;
//
//import org.springframework.security.oauth2.common.OAuth2AccessToken;
//import org.springframework.security.oauth2.provider.OAuth2Authentication;
//import org.springframework.security.oauth2.provider.token.DefaultAccessTokenConverter;
//import org.springframework.stereotype.Component;
//
//import java.util.Map;
//
///**
// * @ClassName: ExtractAttrFromTokenConverter
// * @Description: ExtractAttrFromTokenConverter
// * @Create by: ZhangXuYuan
// * @Date: 2022/4/13 16:22
// */
//
////@Component
//public class ExtractAttrFromTokenConverter extends DefaultAccessTokenConverter {
//
//
//    @Override
//    public OAuth2Authentication extractAuthentication(Map<String, ?> map) {
//
//        OAuth2Authentication oAuth2Authentication = super.extractAuthentication(map);
//        oAuth2Authentication.setDetails(map);
//        return oAuth2Authentication;
//    }
//}
